package com.example.smallmall.dto;

import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;

/**
 * 商品查询参数
 */
public class SpGoodsQueryParam {
    // 商品名称
    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    // 商品价格
    @ApiModelProperty(value = "商品价格")
    private BigDecimal goodsPrice;

    // 商品数量
    @ApiModelProperty(value = "商品数量")
    private Integer goodsNumber;

    // 一级分类
    @ApiModelProperty(value = "一级分类")
    private Integer catOneId;

    // 二级分类
    @ApiModelProperty(value = "二级分类")
    private Integer catTwoId;

    // 三级分类
    @ApiModelProperty(value = "三级分类")
    private Integer catThreeId;

    // 是否促销
    @ApiModelProperty(value = "是否促销")
    private Boolean isPromote;


    public SpGoodsQueryParam(String goodsName, BigDecimal goodsPrice, Integer goodsNumber, Integer catOneId, Integer catTwoId, Integer catThreeId, Boolean isPromote) {
        this.goodsName = goodsName;
        this.goodsPrice = goodsPrice;
        this.goodsNumber = goodsNumber;
        this.catOneId = catOneId;
        this.catTwoId = catTwoId;
        this.catThreeId = catThreeId;
        this.isPromote = isPromote;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public Integer getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(Integer goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public Integer getCatOneId() {
        return catOneId;
    }

    public void setCatOneId(Integer catOneId) {
        this.catOneId = catOneId;
    }

    public Integer getCatTwoId() {
        return catTwoId;
    }

    public void setCatTwoId(Integer catTwoId) {
        this.catTwoId = catTwoId;
    }

    public Integer getCatThreeId() {
        return catThreeId;
    }

    public void setCatThreeId(Integer catThreeId) {
        this.catThreeId = catThreeId;
    }

    public Boolean getIsPromote() {
        return isPromote;
    }

    public void setIsPromote(Boolean isPromote) {
        this.isPromote = isPromote;
    }
}
